package com.health.pay.tencent;

import com.health.pay.tencent.business.*;
import com.health.pay.tencent.protocol.closeorder.CloseOrderReqData;
import com.health.pay.tencent.protocol.closeorder.CloseOrderResData;
import com.health.pay.tencent.protocol.gettransferinfo.GettransferinfoReq;
import com.health.pay.tencent.protocol.gettransferinfo.GettransferinfoResp;
import com.health.pay.tencent.protocol.orderquery.OrderQueryReqData;
import com.health.pay.tencent.protocol.orderquery.OrderQueryResData;
import com.health.pay.tencent.protocol.refund.RefundReqData;
import com.health.pay.tencent.protocol.refund.RefundResData;
import com.health.pay.tencent.protocol.transfers.TransfersReq;
import com.health.pay.tencent.protocol.transfers.TransfersResp;
import com.health.pay.tencent.protocol.unifiedorder.UnifiedorderReqData;
import com.health.pay.tencent.protocol.unifiedorder.UnifiedorderResData;

public class WXPay {
	public static UnifiedorderResData unifiedorder(
			UnifiedorderReqData unifiedorderReqData) throws Exception {
		return new UnifiedorderBusiness().run(unifiedorderReqData);
	}
	public static RefundResData refund(RefundReqData refundReqData)
			throws Exception {
		return new RefundBusiness().run(refundReqData);
	}
	public static CloseOrderResData closeOrder(
			CloseOrderReqData closeOrderReqData) throws Exception {
		return new CloseOrderBusiness().run(closeOrderReqData);
	}
	public static OrderQueryResData queryOrder(
			OrderQueryReqData orderQueryReqData) throws Exception {
		return new OrderQueryBusiness().run(orderQueryReqData);
	}
	public static GettransferinfoResp queryTransferinfo(GettransferinfoReq gettransferinfoReq) throws Exception {
		return new GettransferinfoBusiness().run(gettransferinfoReq);
	}
	public static TransfersResp transfers(TransfersReq transfersReq)throws Exception
	{
		return new TransfersBusiness().run(transfersReq);
	}
}